﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace NMbsDuplex.TCPServerX.Deamon
{
    //自然语言的进化
    public static class Tokenizer
    {
        // Socket基础传输 不进行任何协议的解析
        private const string 同步传输 = "Syn";
        // 业务逻辑层 - 默认还用IMB公司 MQTT协议进行业务逻辑的交互
        private const string 业务传输 = "BIZ";
        // 非自然语言传输 视频|音频|图片|文件
        private const string 文件下载 = "FILE";
        // 结束符: Fin这个单词 是从希伯莱语单词Final中进化而来 在第二个元音处 强制截断驼峰
        private const string 断开连接 = "FIN";
        private const string Ping心跳包 = "PING";

        /// <summary>
        /// 同步传输
        /// </summary>
        public static string TSyn { get { return "[" + 同步传输 + "]"; } }
        /// <summary>
        /// 业务传输
        /// </summary>
        public static string TBiz { get { return "[" + 业务传输 + "]"; } }
        /// <summary>
        /// 文件下载
        /// </summary>
        public static string TFile { get { return "[" + 文件下载 + "]"; } }
        /// <summary>
        /// 断开连接
        /// </summary>
        public static string TFin { get { return "[" + 断开连接 + "]"; } }
        /// <summary>
        /// Ping心跳包
        /// </summary>
        public static string TPIN { get { return "[" + Ping心跳包 + "]"; } }

        /// <summary>
        /// 步进分隔符
        /// </summary>
        static public string TSeper = "|";
        static public string DKLine = @" ---~~**~~--- (([File]传输分隔符)) ---~~**~~--- " + Environment.NewLine;
    }
}
